<script type="text/javascript">
	$(document).ready(function(){
        $("#header").hide();
		$("#login_submit").click( function () {
			var args = new Object();
			args['username'] = $('input:text[name="username"]').val();
			args['password'] = $('input:password[name="password"]').val();
			var data = ajax_call('account', 'login', args, success_login);
		});
		$("#to_reg").click( function () {
			$("#main").load('reg.html');
		});
	});
	function success_login(login) {
		Utils.setCookie("acc_key", login.key);
		get_user_info();
	}
</script>
<div class="login_form" align="center">
	<div align="left">登录</div>
	<div>
		<div class="posfloatl field">用户名：</div>
		<div class="posfloatl"><input name='username' type="text" class="input100" required /></div>
	</div>
	<div class="posclear">
		<div class="posfloatl field">密码：</div>
		<div class="posfloatl"><input name='password' type="password" class="input100" required /></div>
	</div>
	<div class="posclear"></div>
	<input id='login_submit' type="button" value="登录" />  <a href="#" id="to_reg">立即注册</a>
</div>
